/** * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * Project: Hilmacorp.ai — Web Platform * File: app/[locale]/privacy/page.tsx * Description: Privacy Policy page — data practices plus the cookie inventory and preferences access */ import type { Metadata } from "next"; import LegalPage from "@/components/LegalPage"; import ManageCookiesButton from "@/components/ManageCookiesButton"; import { getMessages, isLocale, type Locale } from "@/lib/i18n"; export async function generateMetadata({ params, }: { params: Promise<{ locale: string }>; }): Promise { const { locale } = await params; if (!isLocale(locale)) return {}; const { meta } = getMessages(locale); return { title: { absolute: meta.privacy.title }, description: meta.privacy.description }; } export default async function PrivacyPage({ params, }: { params: Promise<{ locale: string }>; }) { const { locale } = await params; const { privacy } = getMessages(locale as Locale); const cookies = privacy.cookiesSection; return (

{cookies.title}

{cookies.intro}

{cookies.rows.map((row) => ( ))}
{cookies.tableName} {cookies.tablePurpose} {cookies.tableDuration}
{row.name} {row.purpose} {row.duration}
); }